//
//  E7Sprite.cpp
//  E7_ENGINE
//
//  Created by cc on 12-2-28.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#include "E7Sprite.h"

CE7Sprite::CE7Sprite()
{
//    autorelease() ;
}

CE7Sprite::~CE7Sprite()
{
}

void CE7Sprite::Init(const char* filename)
{
    if (!initWithFile(filename))
    {
        printf("load file: [%s] failed\n", filename) ;
        return ;
    }

    CCSize s = CCDirector::sharedDirector()->getWinSize() ;
    setPosition(ccp(s.width/2, s.height/2)) ;
}

bool CE7Sprite::Clear()
{
    return true ;
}

